#!/bin/bash

export KERNEL_DIR="/home/linx/project/clang-to-plantuml/linux"

export CFLAGS="-I $KERNEL_DIR/include/ \
    -I $KERNEL_DIR/arch/x86/include/ \
    -I $KERNEL_DIR/tools/include/ \
    -I $KERNEL_DIR/arch/x86/include/generated/uapi \
    -I $KERNEL_DIR/include \
    -I $KERNEL_DIR/include/uapi \
    -I $KERNEL_DIR/arch/x86/include/generated/ \
    -include $KERNEL_DIR/include/linux/kconfig.h \
    -D__KERNEL__"
    

cargo run -- --source  linux/fs/ext2/file.c --target puml

